/* 评论管理页面容器 */
.container {
  min-height: calc(100vh - 6rem);
  padding: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* 页面标题 */
.titleSection {
  margin-bottom: var(--spacing-xl);
}

.title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* 搜索和筛选栏 */
.searchBar {
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  transition: all 0.3s ease;
}

.searchBar:hover {
  box-shadow: var(--shadow-md);
}

.searchInputContainer {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.searchInput {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s;
}

.searchInput:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.searchIcon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}

.filterSelect {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s;
  cursor: pointer;
}

.filterSelect:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.deleteSelectedBtn {
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.deleteSelectedBtn:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.deleteSelectedBtn:active {
  transform: translateY(0);
}

.deleteSelectedBtn:disabled {
  background-color: #475569;
  cursor: not-allowed;
  transform: none;
}

/* 评论列表容器 */
.commentListContainer {
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  transition: all 0.3s ease;
}

.commentListContainer:hover {
  box-shadow: var(--shadow-md);
}

/* 加载状态 */
.loadingState {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.loadingSpinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loadingText {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* 错误状态 */
.errorState {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.errorBox {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  text-align: center;
  max-width: 500px;
}

.retryBtn {
  padding: 0.6rem 1.25rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.retryBtn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-medium);
}

/* 空状态 */
.emptyState {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
}

.emptyIcon {
  width: 5rem;
  height: 5rem;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.emptyText {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* 评论表格 */
.commentTable {
  width: 100%;
  border-collapse: collapse;
}

.tableHeader {
  justify-content: space-between;
  background-color: var(--bg-secondary);
}

.tableHeader th {
  padding: var(--spacing-md);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-bottom: 1px solid var(--border-light);
}

.tableBody td {
  padding: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.tableRow:hover {
  background-color: var(--bg-tertiary);
  transition: background-color 0.2s ease;
}

/* 评论内容样式 */
.commentContent {
  margin: 0px 20px;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 状态标签 */
.statusBadge {
  margin: 0px 20px;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.statusPending {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--accent-yellow);
}

.statusApproved {
  background-color: rgba(22, 163, 74, 0.1);
  color: var(--accent-green);
}

.statusRejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

/* 查看详情 */
.actionGroup {
  margin: 0 20px;
  display: flex;
  gap: var(--spacing-sm);
}

/* 查看详情 */

.actionBtn {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.viewBtn {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.viewBtn:hover {
  background-color: rgba(59, 130, 246, 0.2);
}

/* 删除按钮 */
.deleteBtn {
  margin: 0px 20px;
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

.deleteBtn:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* 复选框样式 */
.checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0 20px;
  border-radius: 0.25rem;
  border: 1px solid var(--border-light);
  accent-color: var(--accent-blue);
  cursor: pointer;
}

/* 动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .commentContent {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: var(--spacing-md);
  }

  .searchBar {
    flex-direction: column;
    align-items: stretch;
  }

  .commentContent {
    max-width: 150px;
  }

  /* 隐藏次要列 */
  .tableHeader th:nth-child(3),
  .tableBody td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 640px) {
  .titleSection {
    margin-bottom: var(--spacing-lg);
  }

  .searchInputContainer {
    min-width: 100%;
  }

  .actionGroup {
    flex-direction: column;
  }

  .commentContent {
    max-width: 100px;
  }
}